import request from "../../utils/request";
import { R } from "../common_types";
import { ProjectCfg } from "./type";


enum API{
    URL_ProjectList = "/project/list",
    URL_SaveProjectCfg = "/project/saveCfg",
}

export const reqProjectList = () => {
    return request.get<any,R<ProjectCfg[]>>(API.URL_ProjectList);
}

export const savePjtCfg = (data:any) => {
    return request.post<any,R<any>>(API.URL_SaveProjectCfg,data);
}